<?php
namespace app\common\errcode;

class ApiErrCode
{
    CONST SUCCESS                 = 10000;      //请求成功
    CONST FAIL                    = -1;         //请求失败
    CONST SYSTEM_ERROR            = 10500;      //系统错误
    CONST PARAM_ERROR             = 10100;      //参数错误
    CONST LOGIN_FAIL              = 10101;      //用户名或密码错误，请检查！
    CONST JWT_ERROR               = 10102;      //token验证失败 
    CONST JWT_EXPIRE              = 10103;      //token过期
    CONST LOGIN_FORBIDDEN         = 10104;      //离职人员禁止登录
    CONST SPEECH_AI_FAIL          = 10105;      //语音合成失败
    CONST CHAT_AI_FAIL            = 10106;      //OPENAI请求失败
    CONST EDIT_TITLE_FAIL         = 10107;      //编辑会话标题失败
    CONST DELETE_CHAT_FAIL        = 10108;      //删除会话失败
    CONST DELETE_PIC_CHAT_FAIL    = 10109;      //删除会话失败
    CONST EDIT_ARTICLE_FAIL       = 10110;      //编辑创意文章失败
    CONST DELETE_ARTICLE_FAIL     = 10111;      //删除创意文章失败
}